﻿using Org.BouncyCastle.Crypto;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zhaoxi.SqlSugar.Models
{
    public class Tree2
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        public string? Name { get; set; }

        //设置关联字段 
        [SugarColumn(IsTreeKey = true)]
        public string? Code { get; set; }

        [SugarColumn(IsTreeKey = true)]
        public string? ParentCode { get; set; }   //父级字段

        [SugarColumn(IsIgnore = true)]

        public List<Tree2>? Child { get; set; } //这边也是tree2
    }
}
